// 执行同步操作
import * as constant from './constant'

// mutations下的方法全局通用，第一个参数默认为全局的state
const mutations = {
  [constant.CHANGE_NUMBERS] (state, payload) {
    state.number += payload.amount
  }
}
export default mutations
